﻿using System.ServiceModel.Description;

namespace Silent.WCF.Base.Common
{
    public static class BehaviorFactory
    {
        public static IEndpointBehavior SessionShutdownEndpointBehavior
        {
            get { return new SessionShutdownBehaviour(false); }
        }

        public static IServiceBehavior ServiceThrottlingBehavior
        {
            get { return new ServiceThrottlingBehavior { MaxConcurrentCalls = 300, MaxConcurrentSessions = 300 }; }
        }
    }
}